package cn.iocoder.yudao.module.train.controller.admin.picture.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 轮播图 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PictureRespVO {

    @Schema(description = "图片id", requiredMode = Schema.RequiredMode.REQUIRED, example = "9431")
    @ExcelProperty("图片id")
    private Long id;

    @Schema(description = "图片路径", example = "https://www.iocoder.cn")
    @ExcelProperty("图片路径")
    private String url;

    @Schema(description = "跳转路径")
    @ExcelProperty("跳转路径")
    private String link;

    @Schema(description = "有效期")
    @ExcelProperty("有效期")
    private LocalDateTime expirationDate;

    @Schema(description = "描述")
    @ExcelProperty("描述")
    private String detail;

    @Schema(description = "展示顺序")
    @ExcelProperty("展示顺序")
    private Long number;

    @Schema(description = "展示时长")
    @ExcelProperty("展示时长")
    private Long displayDuration;

    @Schema(description = "轮播图状态", example = "1")
    @ExcelProperty(value = "轮播图状态", converter = DictConvert.class)
    @DictFormat("train_course_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Long status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}